package com.earl.eatbao.domain.eatbao;

/**
 * @version:1.0
 * @author: MissYou
 * @date : 16:20
 * @desc:商品Vo
 */
public class GoodsVo {

    /**
     * 商品的GoodsID
     */
    private Integer id;
    /**
     * 商品数量
     */
    private Integer number;

    public GoodsVo(int goodsId, int number) {
        this.id = goodsId;
        this.number = number;
    }

    /**
     * Getter for property 'id'.
     *
     * @return Value for property 'id'.
     */
    public Integer getId() {
        return id;
    }

    /**
     * Setter for property 'id'.
     *
     * @param id Value to set for property 'id'.
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Getter for property 'number'.
     *
     * @return Value for property 'number'.
     */
    public Integer getNumber() {
        return number;
    }

    /**
     * Setter for property 'number'.
     *
     * @param number Value to set for property 'number'.
     */
    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "GoodsVo[" +
                "id=" + id +
                ", number=" + number +
                ']';
    }
}
